package com.ssyc.student.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.ssyc.common.base.LazyBaseFragment;
import com.ssyc.student.R;


/**
 * 学生端--个人信息--真实资料
 */

public class StudentRealInfoFragment extends LazyBaseFragment {

    //单例模式
    private static volatile StudentRealInfoFragment studentRealInfoFragment;
    //中文名
    private TextView tvChineseName;
    //英文名
    private TextView tvEngliseName;
    //性别
    private TextView tvSexType;
    //年龄
    private TextView tvAge;
    //生日
    private TextView tvBirthday;

    public static StudentRealInfoFragment newInstance() {
        if (studentRealInfoFragment == null) {
            synchronized (StudentRealInfoFragment.class) {
                if (studentRealInfoFragment == null) {
                    studentRealInfoFragment = new StudentRealInfoFragment();
                }
            }
        }
        return studentRealInfoFragment;
    }


    @Override
    protected int getLayoutId() {
        return R.layout.fragment_student_real_info;
    }

    @Override
    protected boolean isNeedShowTitle() {
        return false;
    }

    @Override
    protected String setTitleText() {
        return null;
    }

    @Override
    public void lazyInit(View view, Bundle savedInstanceState) {
        initView(view);
        showContent();
    }

    /**
     * 初始化View
     */
    private void initView(View view) {
        tvChineseName = view.findViewById(R.id.tv_chinese_name);
        tvEngliseName = view.findViewById(R.id.tv_englise_name);
        tvSexType = view.findViewById(R.id.tv_sex_type);
        tvAge = view.findViewById(R.id.tv_age);
        tvBirthday = view.findViewById(R.id.tv_birthday);
    }

}
